﻿@model FlashCards.WebApp.Models.FlashcardSetEditModel
@{
    ViewBag.Title = "EditFlashcardSet";
    ViewBag.AppMode = System.Configuration.ConfigurationManager.AppSettings["ApplicationMode"];
}
<h2>
    EditFlashcardSet</h2>
@if (Model != null)
{ 
    <div style="height: 600px">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
            width="100%" height="100%">
            <param name="source" value="../ClientBin/FlashCards.SL.FlashCardCreator.xap" />
            <param name="onError" value="onSilverlightError" />
            <param name="background" value="white" />
            <param name="minRuntimeVersion" value="4.0.50826.0" />
            <param name="autoUpgrade" value="true" />
            <param name="initParams" value="UserID=@Model.UserId,SetID=@Model.Id,AppMode=@ViewBag.AppMode" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration: none">
                <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
                    style="border-style: none" />
            </a>
        </object>
    </div>
}
else
{
    <p>Model is empty!</p> 
}